import request from '@/utils/request';

/**
 * 首页获取农机列表
 * @param {josn} params 查询参数
 */
export function getHomeInfo(params) {
  return request({
    url: 'api/controllerstatus/get_monitor_controllerinfo_by_addr',
    method: 'post',
    data: params
  });
}

/**
 * 首页农机详情
 * @param {josn} params 查询参数
 */
export function getEquipmentInfo(params) {
  return request({
    url: 'api/equipment/get_equipment_info',
    method: 'get',
    params: params,
    disableLoading: true
  });
}
